import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/index'
import forget from '@/components/forget/index'
import index from '@/components/index/index'
import acceptHelp from '@/components/index/acceptHelp'
import provideHelp from '@/components/index/provideHelp'
import community from '@/components/index/community'
import supervise from '@/components/index/supervise'
import state from '@/components/index/state'
import details from '@/components/index/details'
import notice from '@/components/notice/index'
import noticeDetails from '@/components/notice/details'
import user from '@/components/user/index'
import userInfo from '@/components/user/user_info'
import transaction from '@/components/user/transaction'
import bonus from '@/components/user/bonus'
import modificationItem from '@/components/user/modificationItem'
import modify from '@/components/user/modify'
import asset from '@/components/user/asset'
import spread from '@/components/user/spread'
import activation from '@/components/user/activation'
import register from '@/components/user/register'
import wallet from '@/components/wallet/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '登陆',
      component: login
    },
    {
      path: '/forget',
      name: '忘记密码',
      component: forget
    },
    {
      path: '/index',
      name: '首页',
      component: index
    },
    {
      path: '/index/acceptHelp',
      name: '接受帮助',
      component: acceptHelp
    },
    {
      path: '/index/provideHelp',
      name: '提供帮助',
      component: provideHelp
    },
    {
      path: '/index/provideHelp/community',
      name: '社区详情',
      component: community
    },
    {
      path: '/index/supervise',
      name: '币码管理',
      component: supervise
    },
    {
      path: '/index/state',
      name: '匹配状态',
      component: state
    },
    {
      path: '/index/state/details',
      name: '订单详情',
      component: details
    },
    {
      path: '/notice',
      name: '公告',
      component: notice
    },
    {
      path: '/wallet',
      name: '钱包',
      component: wallet
    },
    {
      path: '/notice/details',
      name: '公告详情',
      component: noticeDetails
    },
    {
      path: '/user',
      name: '我的',
      component: user
    },
    {
      path: '/user/user_info',
      name: '个人信息',
      component: userInfo
    },
    {
      path: '/user/transaction',
      name: '交易明细',
      component: transaction
    },
    {
      path: '/user/bonus',
      name: '奖金明细',
      component: bonus
    },
    {
      path: '/user/modificationItem',
      name: '修改密码',
      component: modificationItem
    },
    {
      path: '/user/modificationItem/modify',
      name: '修改密码',
      component: modify
    },
    {
      path: '/user/asset',
      name: '数字资产',
      component: asset
    },
    {
      path: '/user/spread',
      name: '推广链接',
      component: spread
    },
    {
      path: '/user/spread/activation',
      name: '会员激活',
      component: activation
    },
    {
      path: '/user/spread/register',
      name: '新会员注册',
      component: register
    }
  ]
})
